<%@ page language="java" pageEncoding="UTF-8" %>
<%@ include file="../base/base.jsp" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>添加购销合同</title>
    <script language="javascript" src="${ctx}/js/datepicker/WdatePicker.js"></script>
</head>
<body>
<form method="post">
    <div id="menubar">
        <div id="middleMenubar">
            <div id="innerMenubar">
                <div id="navMenubar">
                    <ul>
                        <li id="save"><a href="#" onclick="formSubmit('insert','_self');this.blur();">确定</a></li>
                        <li id="back"><a href="${pageContext.request.contextPath}/cargo/list">返回</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <div class="textbox" id="centerTextbox">
        <div class="textbox-header">
            <div class="textbox-inner-header">
                <div class="textbox-title">
                    添加购销合同信息
                </div>
            </div>
        </div>
        <div>
            <div>
                <table class="commonTable" cellspacing="1">
                    <tr>
                        <td class="columnTitle_mustbe">客户名称：</td>
                        <td class="tableContent"><input type="text" name="customName" title="customName"/></td>
                        <td class="columnTitle_mustbe">收购方：</td>
                        <td class="tableContent"><input type="text" name="offeror" title="offeror"/></td>
                    </tr>

                    <tr>
                        <td class="columnTitle_mustbe">合同号：</td>
                        <td class="tableContent"><input type="text" name="contractNo" title="contractNo"/></td>
                        <td class="columnTitle_mustbe">签单日期：</td>
                        <td class="tableContent">
                            <input type="text" style="width: 90px" name="signingDate" class="Wdate"
                                   onclick="WdatePicker({el:this,isShowOthers:true,dateFmt:'yyyy-MM-dd'});"
                                   title="signingDate"/>
                        </td>
                    </tr>

                    <tr>
                        <td class="columnTitle_mustbe">制单人：</td>
                        <td class="tableContent"><input type="text" name="inputBy" title="inputBy"/></td>
                        <td class="columnTitle_mustbe">审单人：</td>
                        <td class="tableContent"><input type="text" name="checkBy" title="checkBy"/></td>
                    </tr>

                    <tr>
                        <td class="columnTitle_mustbe">验货员：</td>
                        <td class="tableContent"><input type="text" name="inspector" title="inspector"/></td>

                    </tr>
                    <tr>
                        <td class="columnTitle_mustbe">总金额：</td>
                        <td class="tableContent"><input type="text" name="totalAmount" title="totalAmount"/></td>
                        <td class="columnTitle_mustbe">重要程度：</td>
                        <td class="tableContent">
                            <input type="radio" name="importNum" value="3" class="input" checked="checked"
                                   title="importNum"/>★★★
                            <input type="radio" name="importNum" value="2" class="input" checked="checked"
                                   title="importNum"/>★★
                            <input type="radio" name="importNum" value="1" class="input" checked="checked"
                                   title="importNum"/>★
                        </td>
                    </tr>
                    <tr>
                        <td class="columnTitle_mustbe">要求：</td>
                        <td class="tableContent"><input type="text" name="crequest" title="crequest"/></td>
                        <td class="columnTitle_mustbe">交货期限：</td>
                        <td class="tableContent">
                            <input type="text" style="width: 90px" name="deliveryPeriod" class="Wdate"
                                   onclick="WdatePicker({el:this,isShowOthers:true,dateFmt:'yyyy-MM-dd'});"
                                   title="deliveryPeriod"/>
                        </td>
                    </tr>
                    <tr>
                        <td class="columnTitle_mustbe">船期：</td>
                        <td class="tableContent">
                            <input type="text" style="width: 90px" name="shipTime" class="Wdate"
                                   onclick="WdatePicker({el:this,isShowOthers:true,dateFmt:'yyyy-MM-dd'});"
                                   title="shipTime"/>
                        </td>
                        <td class="columnTitle_mustbe">贸易条款：</td>
                        <td class="tableContent"><input type="text" name="tradeTerms" title="tradeTerms"/></td>
                    </tr>

                    <tr>
                        <td class="columnTitle_mustbe">打印版式：</td>
                        <td class="tableContent">
                            <input type="radio" name="printStyle" value="2" checked="checked" title="printStyle"/>两款
                            <input type="radio" name="printStyle" value="1" title="printStyle"/>一款
                        </td>
                        <td class="columnTitle_mustbe">归档前状态：</td>
                        <td class="tableContent"><input type="text" name="oldState" title="oldState"/></td>
                    </tr>
                    <tr>
                        <td class="columnTitle_mustbe">状态：</td>
                        <td class="tableContent"><input type="text" name="state" title="state"/></td>
                        <td class="columnTitle_mustbe">走货状态：</td>
                        <td class="tableContent"><input type="text" name="outState" title="outState"/></td>
                    </tr>
                    <tr>
                        <td class="columnTitle_mustbe">说明：</td>
                        <td class="tableContent"><textarea name="remark" style="height:200px;width: 400px"
                                                           title="remark"></textarea>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
</form>
</body>
</html>